package me.ygy.agent;

import com.sun.tools.attach.VirtualMachine;

public class AttachAgent {
    public static void main(String[] args) throws Exception{
        VirtualMachine vm = VirtualMachine.attach("89278");
        vm.loadAgent("/Users/yuguangyuan/code/gitee/maxwell/agent/target/agent-1.0-SNAPSHOT-jar-with-dependencies.jar");
    }
}
